import {Vec3, Prefab, Collider} from 'cc';
import {MonsterType} from "db://assets/Scripts/MVC/Monster/MonsterType";

/**
 * 敌人界面状态
 */
export class MonsterUiState {
    /**
     * 初始位置
     */
    public originPosition: Vec3 = new Vec3();
    /**
     * 当前位置
     */
    public currentPosition: Vec3 = new Vec3();
    /**
     * 目标位置
     */
    public targetPosition: Vec3 = new Vec3();

    /**
     * 生命值
     */
    public hp: number = 1;

    /**
     * 移动速度
     */
    public speed: number = 1;

    /**
     * 销毁超过此范围的节点
     */
    public outRange: number = 10;

    /**
     * 普通飞机
     */
    public type: MonsterType = MonsterType.NORMAL;

    /**
     * 攻击间隔
     */
    public attackInterval: number = 0.3;
    /**
     * 当前攻击间隔
     */
    public currentAttackInterval: number = 0;
    /**
     * 子弹模型
     */
    public monsterBulletPrefab: Prefab = null;

    /**
     * 死亡特效
     */
    public enemyDiedEffectPrefab: Prefab = null;

    /**
     * 刚出生属于保护期
     */
    public protective: boolean = true;
}